package com.atguigu.yygh.cmn.client;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zfj
 * @date 2024/4/26 -11:16
 */
@FeignClient("service-cmn")
@Repository
public interface DictFeignClient {
	/**
	 * 省市区不需要上级编码，医院等级需要上级编码
	 *
	 * @param dictCode 上级编码
	 * @param value          值
	 * @return 数据字典名称
	 */
	@GetMapping(value = "/admin/cmn/dict/getName/{dictCode}/{value}")
	String getName(@PathVariable("dictCode") String dictCode,@PathVariable("value") String value);

	@GetMapping(value = "/admin/cmn/dict/getName/{value}")
	String getName(@PathVariable("value") String value);
}
